Make the sim ini files polyglot. 🔼

; starts a comment in .ini files, and separates commands in bash scripts.  So an ini file could look something like -

[code=shell]

[Const]

FakeVariableCozOpenSim="" ; pushd ../current/bin; ./sledjchisl $1 basename $0; popd ; exit 0

mysim="01"

[/code]

Shell still bitches about [Const] being an unknown command.  Good enough for now, maybe create a fake [Const] command in /usr/local/bin


reported=2021-05-02 01:34:01

reporter=onefang

priority=high

category=Feature

severity=feature

resolution=fixed


2021-06-11 05:59:37 onefang: Alas shell lines cannot start with a single ; and # means to comment it all out.


2021-06-22 20:22:02 onefang: Aaaand # meaning a comment in .ini files is problematic, not working in OpenSim.

FUCK!  lol

Apparently Nini CAN handle # as comment in Samba style ini type config files, but their docs are crap and searches can't find anything. [url=http://nini.sourceforge.net/faq.php#faq5]A FAQ entry[/url], but OpenSim doesn't use that IniDocument thing. So lots of hacking needed.

http://nini.sourceforge.net/Reference/html/Nini.Config.IniConfigSourceMembers.html

https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html


2021-06-29 15:20:44 onefang: BTW, can't have anything outside of a [foo] section, which is why I put it after [Const], and thus need a fake [Const] command in the path.


2021-06-29 16:53:25 onefang: ./[Const] is what mc does.  Arrrgghh!!!

./[Const] works to.